<template>
	<view>
		<view class="orderBox" v-for="(item,index) in dataList">
			<view class="orderTitle">
				<span class="one">{{index+1}}</span>
				<span class="two">项目单号：JG202403289418</span>
				<span class="three">作业中</span>
			</view>
			<view class="itemBox">
				<view class="itemContent">
					<view class="itemTitle">项目订单编号:</view>
					<view class="itemValue">{{item}}</view>
				</view>
				<view class="itemContent">
					<view class="itemTitle">所属服务项目:</view>
					<view class="itemValue">{{item}}</view>
				</view>
				<view class="itemContent">
					<view class="itemTitle">业务运营方:</view>
					<view class="itemValue">{{item}}</view>
				</view>
				<view class="itemContent">
					<view class="itemTitle">创建时间:</view>
					<view class="itemValue">{{item}}</view>
				</view>
			</view>
			<view class="btnBox">

		<!-- 		<view class="lookCompleted">
					查看完成申请
				</view>
				<view class="lookClose">
					查看关闭申请
				</view> -->
				<!-- 	<view class="review">
					审核报价单
				</view> -->
				<view class="lookDetail">
					查看详情
				</view>
				<view class="del">
					删除
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		components: {},
		props: {
			dataList: {
				type: Array,
				default: () => {
					return [];
				},
			},
		}
	}
</script>

<style lang="scss" scoped>
	.orderBox {
		width: 684rpx;
		min-height: 460rpx;
		background-color: #ffffff;
		padding: 12rpx 14rpx 20rpx;
		box-sizing: border-box;
		margin: 0rpx auto;
		margin-top: 30rpx;
		left: 0rpx;
		top: 0rpx;
		width: 684rpx;
		opacity: 1;
		border-radius: 16rpx;
		background: rgba(255, 255, 255, 1);
		box-shadow: 0rpx 0rpx 12rpx rgba(0, 0, 0, 0.05);

		.orderTitle {
			height: 42rpx;
			font-size: 26rpx;
			font-weight: bold;
			letter-spacing: 0rpx;
			line-height: 42rpx;
			color: rgba(39, 39, 39, 1);
			text-align: left;
			display: flex;
			justify-content: space-between;

			.one {
				margin-left: 10rpx;
			}

			.two {
				width: calc(100% - 140rpx);
			}
			.three {
				width: 100rpx;
				color: rgba(46, 205, 151, 1);
			}
		}

		.itemBox {
			margin: 10rpx auto 0rpx;
			width: 622rpx;
			min-height: 300rpx;
			opacity: 1;
			border-radius: 10rpx;
			background: rgba(245, 246, 250, 1);
			padding: 12rpx 0rpx 12rpx 18rpx;
			box-sizing: border-box;
			display: flex;
			justify-content: space-between;
			flex-wrap: wrap;

			.itemContent {
				display: flex;
				justify-content: space-between;
				flex-wrap: wrap;
				height: 60rpx;
				line-height: 60rpx;
				font-size: 28rpx;
				font-weight: 400;
				letter-spacing: 0rpx;
				color: rgba(39, 39, 39, 1);

			}

			.itemTitle {
				width: 200rpx;
			}

			.itemValue {
				width: 400rpx;
			}
		}

		.btnBox {
			width: 100%;
			display: flex;
			justify-content: flex-end;
			align-items: center;
			color: #ffffff;
			margin-top: 20rpx;

			.lookClose,
			.lookCompleted,
			.review,
			.lookDetail,
			.del {
				min-width: 140rpx;
				height: 58rpx;
				line-height: 58rpx;
				border-radius: 30rpx;
				padding: 4rpx 12rpx;
				text-align: center;
				margin-left: 8rpx;
				background: linear-gradient(270deg, rgba(136, 172, 255, 1) 0%, rgba(33, 101, 255, 1) 100%);

			}

			.lookCompleted {}

			.del {
				background: linear-gradient(270deg, rgba(249, 170, 170, 1) 0%, rgba(255, 108, 108, 1) 100%);
			}
		}
	}
</style>